package com.offcn.service.Impl;

import com.offcn.dao.Impl.PageDaoImpl;
import com.offcn.dao.PageDao;
import com.offcn.entity.Course;
import com.offcn.service.PageSerivce;
import com.offcn.utils.PageTool;

import java.util.List;

public class PageServiceImpl implements PageSerivce {
    PageDao dao = new PageDaoImpl();
    @Override
    public int getTotalCount(int courseType, String search) {
        return dao.getTotalCount(courseType,search);
    }

    @Override
    public List<Course> findByCourseType(int courseType, PageTool pageTool, String search) {
        return dao.findByCourseType(courseType, pageTool,search);
    }
}
